import { prop_cur_req_time } from '../../../../../Classes/cla_req_cur_headers_info';
import { req_info_create_account } from '../../../api/create_acount/Classes/cla_req_info_create_account';

const mdb_info_user_accountTag = 'mdb_info_user_account';

export const user_account_prop_phone = 'phone';
export const user_account_prop_Identity = 'Identity';
export const user_account_prop_self_account = 'self_account';

/**
 * user_account 账号 与 id 信息
 */
export class mdb_info_user_account {
  get [Symbol.toStringTag]() {
    return mdb_info_user_accountTag;
  }

  constructor(req_info: req_info_create_account) {
    this.dueto_time = req_info[prop_cur_req_time];

    this.id = req_info.id;

    this.phone = req_info.phone;

    this.Identity = req_info.Identity;
  }

  /**
   * 处理时间
   */
  dueto_time: string;

  /**
   * 用户 唯一 身份
   */
  id: string;

  /**
   * 手机号
   */
  [user_account_prop_phone]: string;

  /**
   * 身份证号
   */
  [user_account_prop_Identity]: string;

  /**
   * 用户 自定义 account
   */
  [user_account_prop_self_account]: string = '';
}
